package com.skyworth.web.admin.category.service;

import com.google.gson.JsonObject;
import com.skyworth.web.admin.category.domain.CategoryModel;
import com.skyworth.web.admin.category.form.CategoryForm;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;

/**
 * Created by lxs on 2016/8/8.
 */
public interface CategoryService {
	public CategoryModel addCategory(CategoryForm categoryForm);
	public void delCategory(long id);
	public CategoryModel updateCategory(CategoryForm menuForm);
	public CategoryModel findCategory(long id);
	public boolean existCategoryByName(String name, long store_id);
	public boolean existCategory(String name,long id, long store_id);
	public List<CategoryModel> listCategory(JsonObject params);
	public List<CategoryModel> listCategoryByStore(long store_id);
	public Page<CategoryModel> pageCategory(JsonObject params, Pageable pageable);
	Iterable<CategoryModel> findCategoryByStoreId(long storeId);
}
